package com.leet.code.simple_array;

/**
 * @description:    1450.在既定时间做作业的学生人数
 * @author: WYG
 * @time: 2021/1/4 9:41
 */

public class BusyStudent {

    public int busyStudent(int[] startTime, int[] endTime, int queryTime) {
        int res = 0;
        for (int i = 0; i < startTime.length; i++) {
            if (startTime[i] <= queryTime && endTime[i] >= queryTime) {
                res++;
            }
        }
        return res;
    }

}
